package com.xu.sso.db.service;

import com.xu.sso.db.model.base.User;

import java.util.List;

public interface UserDBService {

    User findUserByUsername(String username);

    List<User> findAllUsers();

    List<User> findUsersByLikeUsername(String username);

    List<User> findUsersByListIn(List<String> usernames);

    List<User> findAppUsers(String appId);

    List<User> findNotAppUsers(String appId);

    int createUser(User user);

    int updatePassword(String username, String password);

    int updateUserWithoutPwd(User user);

    int deleteUser(String username);

}
